package rejeev.btrace.services;

/**
 * Created with IntelliJ IDEA.
 * User: rejeev
 * Date: 10/13/13
 * Time: 3:45 PM
 * To change this template use File | Settings | File Templates.
 */
public class BTraceFacade {
    public void invokeOnce() throws Exception {
        new AdminService().startTrace("java.lang.String", "toString");
    }

    public void invokeLoop() throws Exception {
        while (true){
            new AdminService().startTrace("java.lang.String", "toString");
            Thread.sleep(10000);
        }
    }
}
